<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<link href="style.css" rel="stylesheet" type="text/css">
<link href="inside.css" rel="stylesheet" type="text/css">
<link href="member.css" rel="stylesheet" type="text/css">
<title>房屋出租刊登</title>
<meta name="keywords" content="<{$site_keywords}>" />
<meta name="description" content="<{$site_desc}>" />
<script type="text/JavaScript">
function selects() 
{		
	var pro = document.getElementById("pro").value;
	$.ajax(
		{
			type: "GET",
			url: "select.php",
			data: "id="+pro,
			success: function(msg)
			{ 
			 $("#test1").html(msg);;
			}
		}
	);
}
function check_form()
{
	if(document.form1.linkman.value =="")
	{
	   alert("請輸入姓名!");
	   return false;
	}
	
	var email = document.form1.email.value;
	var sReg = /[_a-zA-Z\d\-\.]+@[_a-zA-Z\d\-]+(\.[_a-zA-Z\d\-]+)+$/; 
	if ( ! sReg.test(email) || document.form1.email.value=="" ) 
	{ 
		alert("Email地阯錯誤！請重新輸入！"); 
		return false; 
	} 
	
	if(document.form1.tel.value==""&document.form1.mobile.value=="")
	{
	   alert("請輸入電話或手機!");
	   return false;
	}
	
	if(document.form1.address.value == "")
	{
	   alert("請輸入房子地址!");
	   return false;
	}
	
	if(document.form1.type.value == "")
	{
	   alert("請選擇類型!");
	   return false;
	}
	
	if(document.form1.area.value == "")
	{
	   alert("請輸入坪數!");
	   return false;
	}
	
	if(document.form1.title.value == "")
	{
	   alert("請輸入房屋名稱!");
	   return false;
	}
	
	if(document.form1.price.value == "")
	{
	   alert("請輸入租金!");
	   return false;
	}
	
	if(document.form1.Floor1.value == ""||document.form1.Floor2.value == "")
	{
	   alert("請輸入總樓層/出租樓!");
	   return false;
	}
	
	if(document.form1.age.value == "")
	{
	   alert("請輸屋齡!");
	   return false;
	}	
	
	if(document.form1.img.value == "")
	{
	   alert("請上傳首頁圖片!");
	   return false;
	}
	  
}
</script>
</head>

<body>
<div id="container">
<!--header-->
<{include file="./header.html"}>   
<!--header-->

<!--menu-->
<{include file="./menu.html"}> 
<!--menu-->

<div class="main2">

	<{include file="./left.html"}>  

    <div id="right">
      <div style="margin-top:11px;">
        
<DIV class=page_msgbox style="text-align:left">
<TABLE cellSpacing=0 cellPadding=0 width=600 align=center border=0 style="line-height: 250%;">
   <form method="post" action="add_cz.php" name="form1" style="border:0" onSubmit="return check_form()" enctype="multipart/form-data">
  <TBODY>
  <TR>
    <TD><IMG height=50 
      src="images/title_msg_1sell.gif" 
      width=600> </TD></TR>
  <TR>
    <TD>
      <TABLE cellSpacing=8 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width="6%">
            <DIV class=style2 align=right>*</DIV></TD>
          <TD width="19%" class=page_txt_green><STRONG>姓名：</STRONG> </TD>
          <TD width="75%">
          <INPUT class=txtbox id=linkman maxLength=11 size=15 name=linkman>
           <INPUT id=Sex0 type=radio CHECKED value=男 name=sex>
           <LABEL for=Sex0>男</LABEL>
            <INPUT id=Sex1 type=radio value=女 name=sex>
            <LABEL for=Sex>女</LABEL>
             <BR>
            </TD>
          </TR>
        <TR>
          <TD vAlign=top>&nbsp;</TD>
          <TD class=page_txt_green width="19%"><STRONG>生日：</STRONG> </TD>
          <TD width="75%"><SELECT class=txtbox id=BirYY name="Y"> <OPTION 
              value=11>11</OPTION> <OPTION value=12>12</OPTION> <OPTION 
              value=13>13</OPTION> <OPTION value=14>14</OPTION> <OPTION 
              value=15>15</OPTION> <OPTION value=16>16</OPTION> <OPTION 
              value=17>17</OPTION> <OPTION value=18>18</OPTION> <OPTION 
              value=19>19</OPTION> <OPTION value=20>20</OPTION> <OPTION 
              value=21>21</OPTION> <OPTION value=22>22</OPTION> <OPTION 
              value=23>23</OPTION> <OPTION value=24>24</OPTION> <OPTION 
              value=25>25</OPTION> <OPTION value=26>26</OPTION> <OPTION 
              value=27>27</OPTION> <OPTION value=28>28</OPTION> <OPTION 
              value=29>29</OPTION> <OPTION value=30>30</OPTION> <OPTION 
              value=31>31</OPTION> <OPTION value=32>32</OPTION> <OPTION 
              value=33>33</OPTION> <OPTION value=34>34</OPTION> <OPTION 
              value=35>35</OPTION> <OPTION value=36>36</OPTION> <OPTION 
              value=37>37</OPTION> <OPTION value=38>38</OPTION> <OPTION 
              value=39>39</OPTION> <OPTION value=40>40</OPTION> <OPTION 
              value=41>41</OPTION> <OPTION value=42>42</OPTION> <OPTION 
              value=43>43</OPTION> <OPTION value=44>44</OPTION> <OPTION 
              value=45>45</OPTION> <OPTION value=46>46</OPTION> <OPTION 
              value=47>47</OPTION> <OPTION value=48>48</OPTION> <OPTION 
              value=49>49</OPTION> <OPTION value=50>50</OPTION> <OPTION 
              value=51>51</OPTION> <OPTION value=52>52</OPTION> <OPTION 
              value=53>53</OPTION> <OPTION value=54>54</OPTION> <OPTION 
              value=55>55</OPTION> <OPTION value=56>56</OPTION> <OPTION 
              value=57>57</OPTION> <OPTION value=58>58</OPTION> <OPTION 
              value=59>59</OPTION> <OPTION value=60 selected>60</OPTION> <OPTION 
              value=61>61</OPTION> <OPTION value=62>62</OPTION> <OPTION 
              value=63>63</OPTION> <OPTION value=64>64</OPTION> <OPTION 
              value=65>65</OPTION> <OPTION value=66>66</OPTION> <OPTION 
              value=67>67</OPTION> <OPTION value=68>68</OPTION> <OPTION 
              value=69>69</OPTION> <OPTION value=70>70</OPTION> <OPTION 
              value=71>71</OPTION> <OPTION value=72>72</OPTION> <OPTION 
              value=73>73</OPTION> <OPTION value=74>74</OPTION> <OPTION 
              value=75>75</OPTION> <OPTION value=76>76</OPTION> <OPTION 
              value=77>77</OPTION> <OPTION value=78>78</OPTION> <OPTION 
              value=79>79</OPTION> <OPTION value=80>80</OPTION> <OPTION 
              value=81>81</OPTION> <OPTION value=82>82</OPTION> <OPTION 
              value=83>83</OPTION> <OPTION value=84>84</OPTION> <OPTION 
              value=85>85</OPTION> <OPTION value=86>86</OPTION> <OPTION 
              value=87>87</OPTION> <OPTION value=88>88</OPTION></SELECT> 年 <SELECT 
            class=txtbox id=BirMM name="M"> <OPTION value=1 
              selected>1</OPTION> <OPTION value=2>2</OPTION> <OPTION 
              value=3>3</OPTION> <OPTION value=4>4</OPTION> <OPTION 
              value=5>5</OPTION> <OPTION value=6>6</OPTION> <OPTION 
              value=7>7</OPTION> <OPTION value=8>8</OPTION> <OPTION 
              value=9>9</OPTION> <OPTION value=10>10</OPTION> <OPTION 
              value=11>11</OPTION> <OPTION value=12>12</OPTION></SELECT> 月 <SELECT 
            class=txtbox id=BirDD name="D"> <OPTION value=1 
              selected>1</OPTION> <OPTION value=2>2</OPTION> <OPTION 
              value=3>3</OPTION> <OPTION value=4>4</OPTION> <OPTION 
              value=5>5</OPTION> <OPTION value=6>6</OPTION> <OPTION 
              value=7>7</OPTION> <OPTION value=8>8</OPTION> <OPTION 
              value=9>9</OPTION> <OPTION value=10>10</OPTION> <OPTION 
              value=11>11</OPTION> <OPTION value=12>12</OPTION> <OPTION 
              value=13>13</OPTION> <OPTION value=14>14</OPTION> <OPTION 
              value=15>15</OPTION> <OPTION value=16>16</OPTION> <OPTION 
              value=17>17</OPTION> <OPTION value=18>18</OPTION> <OPTION 
              value=19>19</OPTION> <OPTION value=20>20</OPTION> <OPTION 
              value=21>21</OPTION> <OPTION value=22>22</OPTION> <OPTION 
              value=23>23</OPTION> <OPTION value=24>24</OPTION> <OPTION 
              value=25>25</OPTION> <OPTION value=26>26</OPTION> <OPTION 
              value=27>27</OPTION> <OPTION value=28>28</OPTION> <OPTION 
              value=29>29</OPTION> <OPTION value=30>30</OPTION> <OPTION 
              value=31>31</OPTION></SELECT> 日 </TD></TR>
        <TR>
          <TD width="6%">
            <DIV class=style2 align=right>*</DIV></TD>
          <TD class=page_txt_green width="19%"><STRONG>E-mail：</STRONG> </TD>
          <TD width="75%"><INPUT class=txtbox id=Email maxLength=50 size=28 
            name=email> </TD></TR>
        <TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN><SPAN 
            class=style2>*</SPAN></DIV></TD>
          <TD class=page_txt_green vAlign=top><STRONG>電話：</STRONG> </TD>
          <TD vAlign=top>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD height=23>住宅： <INPUT class=txtbox id=PhoneH maxLength=20 
                  name=tel> </TD></TR>
              <TR>
                <TD height=23>手機： <INPUT class=txtbox id=PhoneM maxLength=20 
                  name=mobile> (擇一填寫) </TD></TR></TBODY></TABLE></TD></TR>
        <TR>
          <TD vAlign=top colSpan=3>
            <DIV class=page_txt_line></DIV></TD></TR>
        <TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN><SPAN 
            class=style2>*</SPAN></DIV></TD>
          <TD class=page_txt_green vAlign=top><STRONG>地址：</STRONG> </TD>
          <TD vAlign=top>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD><SELECT  name="pro" id="pro" onChange="selects()">
                   <OPTION selected>縣市</OPTION>
                   <{section name=key loop=$row4 start=0 max=100 step=1}>
				     <option value="<{$row4[key].cate_id}>"><{$row4[key].zh_cate_title}></option>
			       <{/section}>
                   </SELECT> 
                  <span id="test1">
                    <select name="city" id="select2">   
                        <option value="">鄉鎮</option>
                    </select>
                    </span></TD></TR>
              <TR>
                <TD><INPUT class=txtbox maxLength=100  size=50 name=address></TD>
              </TR>
              <TR>
                <TD>
                  格式：* (街,路,大道) * 段 * 巷 * 弄 * 號 * 樓 子 *
                </TD></TR>
                
                </TBODY></TABLE></TD></TR>
         
          <TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN><SPAN 
            class=style2>*</SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>標題：</STRONG> </TD>
          <TD><INPUT class=txtbox id=area maxLength=20 name=title> 
             </TD></TR>       
          
		  <TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN><SPAN 
            class=style2>*</SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>分店：</STRONG> </TD>
          <TD>
          <select name="store">
          <{$fd}>
          </select>          
          
             </TD></TR>              
                
        <TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN><SPAN 
            class=style2>*</SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>坪數：</STRONG> </TD>
          <TD><INPUT class=txtbox id=area maxLength=8 size=3 name=area> 
            坪 </TD></TR>
        <TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN><SPAN 
            class=style2>*</SPAN></DIV></TD>
          <TD class=page_txt_green vAlign=top><STRONG>類型：</STRONG> </TD>
          <TD><{$typexx}></TD>
        </TR>
        <TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>大樓案名：</STRONG></TD>
          <TD><INPUT class=txtbox id=HopePrice maxLength=8 size=15 
            name=hou_name></TD></TR>
			
             <TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>電梯：</STRONG> </TD>
          <TD><{$elevatorxx}></TD>
             </TR>
			
            
		<TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN></DIV></TD>
          <TD class=page_txt_green valign="top"><STRONG>傢俱：</STRONG> </TD>
          <TD><{$furniturexx}></TD>
		</TR>
		<TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>家電：</STRONG> </TD>
          <TD><{$wiringxx}></TD>
		</TR>
		<TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>來源：</STRONG> </TD>
          <TD><{$source}></TD>
		</TR>
        <TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>希望租價：</STRONG> </TD>
          <TD><INPUT class=txtbox id=price maxLength=8 size=10 
            name=price> 
          元 </TD></TR>
		<TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>押金：</STRONG> </TD>
          <TD><INPUT class=txtbox id=deposit maxLength=8 size=10 
            name=deposit>
          元 </TD>
		</TR>
		
		<TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>優惠價：</STRONG> </TD>
          <TD><INPUT class=txtbox id=sale maxLength=8 size=10 
            name=sale>
          元 </TD>
		</TR>	
		
        <TR>
          <TD vAlign=top>&nbsp; </TD>
          <TD class=page_txt_green><STRONG>租金包含：</STRONG> </TD>
          <TD><{$baohangxx}></TD></TR>
        	
        <TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>樓層：</STRONG> </TD>
          <TD><INPUT class=txtbox id=CaseFloor maxLength=3 size=3 
            name="Floor1"> 樓(所在樓層) / <INPUT class=txtbox id=UpFloor maxLength=3 
            size=3 name="Floor2"> 樓(總樓高) </TD></TR>
        <TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>格局：</STRONG> </TD>
          <TD><SELECT size=1 name=Room>
             <OPTION value=0 selected>0</OPTION>
              <OPTION value=1 >1</OPTION><OPTION value=2>2</OPTION><OPTION 
              value=3>3</OPTION><OPTION value=4>4</OPTION><OPTION 
              value=5>5</OPTION><OPTION value=6>6</OPTION><OPTION 
              value=7>7</OPTION><OPTION value=8>8</OPTION><OPTION 
              value=9>9</OPTION><OPTION value=10>10</OPTION></SELECT> 房 <SELECT 
            size=1 name=LivingRoom><OPTION value=0 selected>0</OPTION>
              <OPTION value=1 >1</OPTION><OPTION 
              value=2>2</OPTION><OPTION value=3>3</OPTION><OPTION 
              value=4>4</OPTION><OPTION value=5>5</OPTION></SELECT> 廳 <SELECT 
            size=1 name=BathRoom><OPTION value=0 selected>0</OPTION>
              <OPTION value=1 >1</OPTION><OPTION 
              value=2>2</OPTION><OPTION value=3>3</OPTION><OPTION 
              value=4>4</OPTION><OPTION value=5>5</OPTION><OPTION 
              value=6>6</OPTION><OPTION value=7>7</OPTION><OPTION 
              value=8>8</OPTION><OPTION value=9>9</OPTION><OPTION 
              value=10>10</OPTION></SELECT> 衛 
              
              <SELECT 
            size=1 name=CRoom><OPTION value=0 selected>0</OPTION>
              <OPTION value=1 >1</OPTION><OPTION 
              value=2>2</OPTION><OPTION value=3>3</OPTION><OPTION 
              value=4>4</OPTION><OPTION value=5>5</OPTION><OPTION 
              value=6>6</OPTION><OPTION value=7>7</OPTION><OPTION 
              value=8>8</OPTION><OPTION value=9>9</OPTION><OPTION 
              value=10>10</OPTION></SELECT> 廚</TD></TR>
        <TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>屋齡：</STRONG> </TD>
          <TD><INPUT class=txtbox id=age maxLength=3 size=3 
            name=age> 年 </TD></TR>
          <TR>
          <TD vAlign=top>&nbsp; </TD>
          <TD class=page_txt_green><STRONG>公設：</STRONG> </TD>
          <TD><{$firexx}><BR></TD></TR>
            <TR>
          <TD vAlign=top>&nbsp; </TD>
          <TD class=page_txt_green><STRONG>保全：</STRONG> </TD>
          <TD><{$baoquanxx}></TD>
            </TR>
            <TR>
          <TD vAlign=top>&nbsp; </TD>
          <TD class=page_txt_green><STRONG>座向：</STRONG> </TD>
          <TD><{$position}><BR></TD></TR>
            <TR>
          <TD vAlign=top>&nbsp; </TD>
          <TD class=page_txt_green><STRONG>車位狀況：</STRONG> </TD>
          <TD><INPUT id=Parking0 type=radio CHECKED value=可租
            name=unit><LABEL for=Parking0>可租</LABEL> <INPUT id=Parking1 
            type=radio value=有 name=unit><LABEL for=Parking1>有</LABEL> <INPUT 
            id=Parking2 type=radio value=無 name=unit><LABEL 
            for=Parking2>無</LABEL> <BR></TD></TR>
         
         <TR>
          <TD vAlign=top>&nbsp; </TD>
          <TD class=page_txt_green valign="top"><STRONG>特色說明：</STRONG> </TD>
          <TD><{$edit}></TD>
          </TR>  
            
          <TR>
          <TD vAlign=top>&nbsp; </TD>
          <TD class=page_txt_green valign="top"><STRONG>GOOGLE地圖：</STRONG> </TD>
          <TD><textarea rows="10" name="map" cols="40"  class=txtbox></textarea>&nbsp;<a href="http://maps.google.com.tw/" target="_blank">獲取地圖代碼</a><br>203 * 286&nbsp;(<a href="images/mmap.jpg" target="_blank">調用說明</a>)</TD>
          </TR>
          
        <TR>
          <TD vAlign=top colSpan=3>
            <DIV class=page_txt_line></DIV></TD></TR>
        <TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN><SPAN 
            class=style2>*</SPAN></DIV></TD>
          <TD valign="top" class=page_txt_green><p><STRONG>上傳房子照片：</STRONG> </p>
            <p style="line-height:18px;"><font style="color:#F90">圖片上傳檔案為jpg或gif，上傳照片大小為500*375，檔案名字為字母加數字<font></p></TD>
          <TD>
            <TABLE cellSpacing=1 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD><label><br>
				  <input type="file" name="img" class=txtbox><br>
                  <input type="file" name="img1" class=txtbox><br>
                  <input type="file" name="img2" class=txtbox><br>
                  <input type="file" name="img3" class=txtbox><br>
                  <input type="file" name="img4" class=txtbox><br>
                  <input type="file" name="img5" class=txtbox><br>
                  <input type="file" name="img6" class=txtbox><br>
                  <input type="file" name="img7" class=txtbox><br>
                  <input type="file" name="img8" class=txtbox><br>
                  <input type="file" name="img9" class=txtbox><br>
                  <input type="file" name="img10" class=txtbox><br>
                  <input type="file" name="img11" class=txtbox><br>
                  <input type="file" name="img12" class=txtbox><br>
				  <!--<input type="submit" name="Submit" value="瀏覽">-->
                </label></TD>
              </TR></TBODY></TABLE></TD></TR>
       </TBODY></TABLE></TD></TR>
  <TR>
    <TD><IMG height=30 
      src="images/title_msg_foot.gif" 
      width=600> </TD></TR>
  <TR>
    <TD>&nbsp; </TD></TR>
  <TR>
    <TD height=70>
      <TABLE cellSpacing=10 cellPadding=0 width="1%" align=center border=0>
        <TBODY>
        <TR>
         <TD><input type="image" src="images/btn_send.gif" border="0">
          <input type="hidden" name="add" value="1">
          </TD>
          <TD><a href="add_cz.php"><img src="images/btn_delete.gif" border="0"></a></TD>
         
        </TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD>&nbsp; </TD></TR></TBODY></FORM></TABLE></DIV>
      </div>
    </div>


</div>

<!--foot-->
<{include file="./footer.html"}> 
<!--foot-->

</div>
</body>
</html>
